Component org.nuxeo.ecm.platform.smart.query.contentviews
In bundle org.nuxeo.ecm.platform.smart.query.jsf
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.smart.query.contentviews">
<extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
point="contentViews">
<documentation>
Content view definition for the global smart query results.
It is bound to smartNXQLQueryActions component for the query part, the
sort information, and the selected layout columns retrieval.
</documentation>
<contentView name="nxql_incremental_smart_query">
<emptySentence>label.content.empty.search</emptySentence>
<translateEmptySentence>true</translateEmptySentence>
<coreQueryPageProvider>
<property name="coreSession">#{documentManager}</property>
<pattern quoteParameters="false" escapeParameters="false">
SELECT * FROM Document WHERE (?) AND ecm:mixinType !=
'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
ecm:currentLifeCycleState != 'deleted'
</pattern>
<parameter>#{smartNXQLQueryActions.queryPart}</parameter>
<sort column="dc:title" ascending="true" />
<pageSize>20</pageSize>
<sortInfosBinding>
#{smartNXQLQueryActions.searchSortInfos}
</sortInfosBinding>
</coreQueryPageProvider>
<showPageSizeSelector>true</showPageSizeSelector>
<useGlobalPageSize>true</useGlobalPageSize>
<refresh>
<event>documentChanged</event>
<event>documentChildrenChanged</event>
<event></event>
</refresh>
<cacheKey>only_one_cache</cacheKey>
<cacheSize>1</cacheSize>
<searchLayout name="nxql_incremental_smart_query" />
<resultLayouts>
<layout name="search_listing_ajax" title="document_listing"
translateTitle="true" iconPath="/icons/document_listing_icon.png"
showCSVExport="true" />
<layout
name="document_virtual_navigation_listing_ajax_compact_2_columns"
title="document_listing_compact_2_columns" translateTitle="true"
iconPath="/icons/document_listing_compact_2_columns_icon.png" />
<layout name="document_virtual_navigation_listing_ajax_icon_2_columns"
title="document_listing_icon_2_columns" translateTitle="true"
iconPath="/icons/document_listing_icon_2_columns_icon.png" />
</resultLayouts>
<resultColumns>
#{smartNXQLQueryActions.selectedLayoutColumns}
</resultColumns>
<selectionList>CURRENT_SELECTION</selectionList>
<actions category="CURRENT_SELECTION_LIST" />
</contentView>
</extension>
</component>